package com.xueyiyue.xueyiyue.service.impl;

import com.xueyiyue.xueyiyue.dao.QicheMapper;
import com.xueyiyue.xueyiyue.model.entity.QicheChoujiang;
import com.xueyiyue.xueyiyue.model.entity.QicheChoujiangList;
import com.xueyiyue.xueyiyue.model.entity.QicheNewsList;
import com.xueyiyue.xueyiyue.service.QicheService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenlixian
 * @description TODO
 * @date 2021/4/4 13:39
 */
@Slf4j
@Service
public class QicheServiceImpl implements QicheService  {
    @Autowired
    private QicheMapper qicheMapper;
    @Override
    public List<QicheNewsList> getNewsList() {
        return qicheMapper.getNewsList();
    }

    @Override
    public QicheChoujiang getChoujiangInfo(Long id) {
        return qicheMapper.getChoujiangInfo(id);
    }

    @Override
    public Integer finishChoujiang(Long id) {
        return qicheMapper.finishChoujiang(id);
    }

    @Override
    public List<QicheChoujiangList> getChoujiangList() {
        return qicheMapper.getChoujiangList();
    }

    @Override
    public Integer updateList(QicheChoujiangList winner) {
        return qicheMapper.updateList(winner);
    }

    @Override
    public Integer addPhone(String phone) {
        return qicheMapper.addPhone(phone);
    }
}
